The online racing simulator
Searching in All forums
(299 results)
Flame CZE
S3 licensed
Moderator
Can't wait for the extended version from Le petit baigneur Big grin

Flame CZE
S3 licensed
Moderator
v4.3.0 introduces a new API for sending messages - no more trying to remember which packet to send Smile

Send a message which will appear on the local computer only (IS_MSL):

inSim.sendLocalMessage('Local message');

Starts with a slash - send an IS_MST packet:

inSim.sendMessage('/end');

Up to 63 characters - send an IS_MST packet:

inSim.sendMessage(
'This is a message that is shorter than 64 characters exactly 63',
);

64 characters or more - send an IS_MSX packet:

inSim.sendMessage(
'This is another long message that is exactly 64 characters long!',
);

Send a message to a specific connection by their UCID (IS_MTC):

inSim.sendMessageToConnection(4, 'This is a message targeting UCID 4');

Send a message to a specific player by their PLID (IS_MTC):

inSim.sendMessageToPlayer(4, 'This is a message targeting PLID 4');

Flame CZE
S3 licensed
Moderator
In this case the answer can also be “use a library” Big grin
Flame CZE
S3 licensed
Moderator
Or you can use a darker reflection colour to reduce the amount of reflecitons
Flame CZE
S3 licensed
Moderator
That looks cool, I will try some laps around it with my stock car mod.
Flame CZE
S3 licensed
Moderator
Can you show some screenshots of the track?
Flame CZE
S3 licensed
Moderator
"Colour Type RGB but A is required" means the texture was saved without the alpha channel for transparency, but the texture cutout material property "Alpha type" is set to "Alpha".

There are two ways to fix it, depending what you want to achieve:

You want a texture with transparency

- Save the PNG file as a 32-bit image (including the alpha channel)
- The file name must end with _ALP, for example TextureName_ALP.png
- In modeller in cutout mode, the cutouts that use this texture page must have the material property "Alpha type" set to "Alpha".

You want a texture without transparency

- Save the PNG file as a 24-bit image (without the alpha channel)
- The file name must not end with _ALP, for example TextureName.png
- In Modeller in cutout mode, the cutouts that use this texture page must have the material property "Alpha type" set to "Solid".
Flame CZE
S3 licensed
Moderator
I've created a thread with my progress: (WIP) Car driving lessons on a multiplayer server
Car driving lessons on a multiplayer server (WIP)
Flame CZE
S3 licensed
Moderator
Note: This concept is still in progress and not publicly accessible at the moment.

The goal is to learn basic car controls and obey traffic rules.

The idea is to have a multiplayer server so several people can do driving lessons in parallel. Also, people can compare their progress with others. The server will be using Layout Square because it has the largest open area for the lesson layouts to fit in.

When you join the server, you will be presented with a list of driving lessons. Once you complete a lesson or a set of lessons, new lessons will be unlocked for you. When you select a lesson, you will be spawned automatically at the correct starting point.

To be able to check correct usage of various car lights and switches during the driving lessons, each player will have to have a special application running on their computer, which will connect to the local LFS instance via OutGauge and send lights and switches information to the server using special InSim commands.

Main features:

- speed limits
- car lights and switches checking (turn signals, lights, handbrake etc.)
- pedestrian crossings with marshalls as pedestrians
- multi-lane roads
- intersections with traffic lights
- traffic signs (using InSim buttons or custom autocross layout sign textures)

Example lessons:

- car starting procedure
- uphill start
- downhill stop
- 3-point turn
- reverse parking
- intersection with traffic lights

I will use this thread to post progress of the features.

Ideas and suggestions are welcome Smile
Last edited by Flame CZE, .
Flame CZE
S3 licensed
Moderator
Quote from tumes925semut :How?

Ah sorry, I double checked and indeed it's only possible to spawn only 3 checkpoints.
Flame CZE
S3 licensed
Moderator
I didn’t work on it much, but I would like to make a proof of concept / working prototype to see what is possible.

There are some limitations what InSim can offer. One of the features I would like to add is detecting proper usage of turn signals, car lights, handbrake etc. There isn’t a way to get current state of the player’s car lights and switches via server-side InSim. Every player would have to download and run a local program which would connect to their local LFS via OutGauge, but that has some limitations too - it outputs the state of the dashboard switches, so if a car doesn’t support sidelights / low / high beam on the dashboard, the data is not there.

Another way is to make it a single player app only. But I like the idea of having a shared area on a multiplayer server where several people can do the challenges in parallel and others can spectate them, also leaderboards can be tracked.

Maybe it can be a combination of both. I can start with a client-side program first and maybe in the future connect it with a server-side InSim app.
Last edited by Flame CZE, .
Flame CZE
S3 licensed
Moderator
The IS_NCI packet contains the license if the InSim app is connected with admin password.
Flame CZE
S3 licensed
Moderator
Quote from tumes925semut :Simply:
Editor needs InSim checkpoint with index.... like that circle.

It is already possible to place InSim checkpoints with indices.
Flame CZE
S3 licensed
Moderator
May I ask how you did that?
Flame CZE
S3 licensed
Moderator
This is how I think it works - when you run /mods all, there is no whitelist, because it would have to be updated every time there’s a new mod or a mod is deleted, so it’s more of s on/off switch. Also, I believe the mods whitelist is limited to 120, so “all” minus one would totally exceed that limit.

To solve this, there would have to be a blacklist command, where you would set disallowed mods instead.
Last edited by Flame CZE, .
Flame CZE
S3 licensed
Moderator
The correct place to post modelling proofs is the Mods - Work in Progress forum. Then you can link that thread to your mod during the submission process.
Flame CZE
S3 licensed
Moderator
Your attention to detail is amazing! Thumbs up
Flame CZE
S3 licensed
Moderator
For future reference, there's a short explanation of this option in the LFS Manual - Options page.

Quote :This determines which cars update the racing groove on the track.

Flame CZE
S3 licensed
Moderator
It only seems to be wrong in the LFS Editor models. It looks fine in the actual XR cars in game.
Flame CZE
S3 licensed
Moderator
Quote from SupPah :There are multiple solutions to consider but most of them all require money. The easiest way (although probably the most expensive) would be to get Cloudflare or OVH, maybe even TCPShield (though that's aimed more towards Minecraft servers). A bit more technical though a bit cheaper (I think) would be renting out VPS servers and using them as a shield for the main server. Yet that has a negative side of increasing latency most likely.

LFS already uses CloudFlare for the website. I think it gets more complex when it comes to protecting the game servers, so I guess you can’t just slap CloudFlare on top of it and it’s solved.
Flame CZE
S3 licensed
Moderator
Good to hear that!

I've been thinking about creating an InSim application which would serve as a tutorial for these kinds of situations. It would consist of various driving lessons to teach things like car control, parking, speed limits, pedestrian crossings, intersections, traffic lights, lane changes etc. It would keep track of your progress, guide you through the lessons, point out mistakes.

What do you think about this idea?
Flame CZE
S3 licensed
Moderator
The way the training lessons mode works is that you do have to work your way down the list to unlock more lessons.

But if you just want to drive around autocross with a layout with objects:

- go to Single player
- select the Autocross track
- in the Layout section, you can choose one of the default layouts with objects (AU1_LX_week1-3)

You can also use the layout from the MRT training lesson. Go to your LFS/data/training folder, find a file called AU1_MRT_AutoX.lyt and double click it or manually copy it over to data/layout. Then it will appear in the list of available layouts on the track selection screen.

It is also possible to create your own autocross layout - more information in the LFS Manual: Autocross Editor
Flame CZE
S3 licensed
Moderator
Thanks very helpful for everyone
Flame CZE
S3 licensed
Moderator
Quote from Meseplayer :Wonder if the developer can create an easy fix for this?

See Scawen's reply a few posts above.
Flame CZE
S3 licensed
Moderator
It's just a placeholder because LFS doesn't support onboard cameras.
FGED GREDG RDFGDR GSFDG